<!-- 头部开始 -->
<div class="header-box">
    <!-- 头部第一层 -->
    <div class="header-top">
        <!-- 头部-logo -->
        <div class="header-logo">
            <!-- 点击Logo返回首页 -->
            <a href="{:U('Home/Index/index')}"><img src="__PUBLIC__/Home/images/logo1.png.png" width="100" style="margin-top:5px;margin-left:-6px;" /></a>
        </div>
        <!-- 头部第一层-背景 -->
        <div class="header-top-bg">
            <!-- 头部第一层-导航 -->
            <ul class="serviceNav">


                <!-- 判断登录 -->
                <if condition="$chek_session['decide'] eq 1 ">
                    <!-- 登录了 -->
                    <li><a href="{:U('Home/personCenter/personCenter')}">个人中心</a></li>
                    <li style="font-family: Microsoft YaHei;font-size: 12px;">|</li>
                    <li style="font-family: Microsoft YaHei;font-size: 12px;">你好！<a href="#">{$chek_session['homeuser']}</a></li>
                    <li><span id="login-icon"></span></li>
                    <li><a href="{:U('Home/User/loginout')}">注销</a></li>
                <else />
                    <!-- 没有登录 -->
                    <li><a href="{:U('Home/user/login')}">登录</a></li>
                    <li><span id="login-icon"></span></li>
                    <li><a href="{:U('Home/User/register')}">免费注册</a></li>
                    <li><span id="login-icon"></span></li>
                </if>



                <!-- 跟踪session，判断用户是否处在登录状态 -->
            </ul>
        </div>
        <!-- 头部第二层-导航 -->
        <!-- 导航开始遍历数据库表shop_category -->
        <div class="headNav">
          <!-- 一级导航遍历 -->
          <ul class="head-top">
            <volist name="nav" id="v1">
            <li class="top-li"><a href="{:U('GoodsClassify/classify',array('id'=>$v1['id']))}" class="btn">{$v1.name}</a>
              <div class="head_content_hidden">
                <!-- 二级导航遍历 -->
                <div class="head-second">
                  <volist name="v1.son" id="v2">
                  <div class="second-li"><a href="{:U('GoodsClassify/classify',array('id'=>$v2['id']))}" class="second-a">{$v2.name}</a>
                    <div>
                      <!-- 三级导航遍历 -->
                      <div class="head-third">
                        <volist name="v2.son" id="v3">
                        <div class="third-li"><a href="{:U('GoodsClassify/classify',array('id'=>$v3['id']))}" class="third-a">{$v3.name}</a>
                        </div>
                        </volist>
                      </div>
                    </div>
                  </div>
                  </volist>
                </div>
              </div>
            </li>
            </volist>
          </ul>
        </div>
        <!-- 导航结束 -->

        <!-- 购物车开始 -->
        <div class="shopcart-box">
            <!-- 判断是否登录 -->
            <if condition="$chek_session['decide'] eq 1 ">

                <a href="{:U('Home/Cart/showcart')}" style="display:block;">
                    <div class="" style="margin-left:20px;width:60px;">
                        <img width='100%'  style="border-radius:10px;" src="__PUBLIC__/Home/images/u=2712247482,2284064540&fm=23&gp=0.jpg" alt="">
                        <div style="height:20;position:absolute;top:7px;left:22px;color:red;">
                            <b><span id="shopcount">{$shopcount ? $shopcount : 0}</span></b>
                        </div>
                    </div>

                </a>
            <else />
                <a href="{:U('Home/User/login')}" style="display:block;">
                    <div class="" style="margin-left:20px;width:60px;">
                        <img width='100%'  style="border-radius:10px;" src="__PUBLIC__/Home/images/u=2712247482,2284064540&fm=23&gp=0.jpg" alt="">
                        <div style="height:20;position:absolute;top:7px;left:22px;color:red;">
                            <b><span id="shopcount" style="font-family: Microsoft YaHei;font-size: 12px;">0</span></b>
                        </div>
                    </div>

                </a>

            </if>
        </div>
        <!-- 购物车结束 -->
    </div>


</div>
